1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
#![allow(non_camel_case_types, non_snake_case)]
use crate::decl::*;
use crate::kernel::ffi_types::*;
use crate::prelude::*;
use crate::vt::*;
/// [`IEmailAction`](crate::IEmailAction) virtual table.
#[repr(C)]
pub struct IEmailActionVT {
pub IAction: IActionVT,
pub get_Server: fn(COMPTR, *mut PSTR) -> HRES,
pub put_Server: fn(COMPTR, PCSTR) -> HRES,
pub get_Subject: fn(COMPTR, *mut PSTR) -> HRES,
pub put_Subject: fn(COMPTR, PCSTR) -> HRES,
pub get_To: fn(COMPTR, *mut PSTR) -> HRES,
pub put_To: fn(COMPTR, PCSTR) -> HRES,
pub get_Cc: fn(COMPTR, *mut PSTR) -> HRES,
pub put_Cc: fn(COMPTR, PCSTR) -> HRES,
pub get_Bcc: fn(COMPTR, *mut PSTR) -> HRES,
pub put_Bcc: fn(COMPTR, PCSTR) -> HRES,
pub get_ReplyTo: fn(COMPTR, *mut PSTR) -> HRES,
pub put_ReplyTo: fn(COMPTR, PCSTR) -> HRES,
pub get_From: fn(COMPTR, *mut PSTR) -> HRES,
pub put_From: fn(COMPTR, PCSTR) -> HRES,
pub get_HeaderFields: fn(COMPTR, *mut COMPTR) -> HRES,
pub put_HeaderFields: fn(COMPTR, COMPTR) -> HRES,
pub get_Body: fn(COMPTR, *mut PSTR) -> HRES,
pub put_Body: fn(COMPTR, PCSTR) -> HRES,
pub get_Attachments: fn(COMPTR, PVOID) -> HRES,
pub put_Attachments: fn(COMPTR, PCVOID) -> HRES,
}
com_interface! { IEmailAction: "10f62c64-7e16-4314-a0c2-0c3683f99d40";
/// [`IEmailAction`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nn-taskschd-iemailaction)
/// COM interface over [`IEmailActionVT`](crate::vt::IEmailActionVT).
///
/// Automatically calls
/// [`Release`](https://learn.microsoft.com/en-us/windows/win32/api/unknwn/nf-unknwn-iunknown-release)
/// when the object goes out of scope.
///
/// # Examples
///
/// ```no_run
/// use winsafe::{self as w, prelude::*};
///
/// let action: w::IAction; // initialized somewhere
/// # let action = unsafe { w::IAction::null() };
///
/// let email_action = action
/// .QueryInterface::<w::IEmailAction>()?;
/// # w::HrResult::Ok(())
/// ```
}
impl oleaut_IDispatch for IEmailAction {}
impl taskschd_IAction for IEmailAction {}
impl taskschd_IEmailAction for IEmailAction {}
/// This trait is enabled with the `taskschd` feature, and provides methods for
/// [`IEmailAction`](crate::IEmailAction).
///
/// Prefer importing this trait through the prelude:
///
/// ```no_run
/// use winsafe::prelude::*;
/// ```
pub trait taskschd_IEmailAction: taskschd_IAction {
fn_com_bstr_get! { get_Bcc: IEmailActionVT;
/// [`IEmailAction::get_Bcc`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_bcc)
/// method.
}
fn_com_bstr_get! { get_Body: IEmailActionVT;
/// [`IEmailAction::get_Body`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_body)
/// method.
}
fn_com_bstr_get! { get_Cc: IEmailActionVT;
/// [`IEmailAction::get_Cc`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_cc)
/// method.
}
fn_com_bstr_get! { get_From: IEmailActionVT;
/// [`IEmailAction::get_From`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_from)
/// method.
}
fn_com_bstr_get! { get_ReplyTo: IEmailActionVT;
/// [`IEmailAction::get_ReplyTo`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_replyto)
/// method.
}
fn_com_bstr_get! { get_Server: IEmailActionVT;
/// [`IEmailAction::get_Server`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_server)
/// method.
}
fn_com_bstr_get! { get_Subject: IEmailActionVT;
/// [`IEmailAction::get_Subject`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_subject)
/// method.
}
fn_com_bstr_get! { get_To: IEmailActionVT;
/// [`IEmailAction::get_To`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-get_to)
/// method.
}
fn_com_bstr_set! { put_Bcc: IEmailActionVT, bcc;
/// [`IEmailAction::put_Bcc`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_bcc)
/// method.
}
fn_com_bstr_set! { put_Body: IEmailActionVT, body;
/// [`IEmailAction::put_Body`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_body)
/// method.
}
fn_com_bstr_set! { put_Cc: IEmailActionVT, cc;
/// [`IEmailAction::put_Cc`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_cc)
/// method.
}
fn_com_bstr_set! { put_From: IEmailActionVT, from;
/// [`IEmailAction::put_From`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_from)
/// method.
}
fn_com_bstr_set! { put_ReplyTo: IEmailActionVT, reply_to;
/// [`IEmailAction::put_ReplyTo`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_replyto)
/// method.
}
fn_com_bstr_set! { put_Server: IEmailActionVT, server;
/// [`IEmailAction::put_Server`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_server)
/// method.
}
fn_com_bstr_set! { put_Subject: IEmailActionVT, subject;
/// [`IEmailAction::put_Subject`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_subject)
/// method.
}
fn_com_bstr_set! { put_To: IEmailActionVT, to;
/// [`IEmailAction::put_To`](https://learn.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iemailaction-put_to)
/// method.
}
}